package cn.akwangl.concurrency.web.model.user.controller;

import cn.akwangl.concurrency.web.common.Result;
import cn.akwangl.concurrency.web.model.user.service.UsersService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表  前端控制器
 * </p>
 *
 * @author 阿坤同学
 * @since 2022-11-22 14:30:15
 */
@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
public class UserController {

    private final UsersService usersService;

    @PostMapping("/register")
    public Result<String> register() {
        usersService.register();
        return Result.success();
    }
}
